package com.heima.user.feign;


import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
import java.util.List;

@FeignClient(value = "leadnews-wemedia")// 调用的微服务名称
public interface WemediaFeign {
    @PostMapping("/api/v1/user/save")
    ResponseResult save(@RequestBody WmUser wmUser);
    @GetMapping("/api/v1/user/findByName/{name}")
    WmUser findByName(@PathVariable("name") String name);
}
